<?php
namespace app\store\validate;
use think\Validate;

class Dict extends Validate
{
    protected $rule = [
        'name' => 'require',

    ];

    protected $message = [
        'name.require' => '字典名称不能为空',
    ];

    /**
     * 验证场景
     * @var \string[][]
     */
    protected $scene = [
        'add'   =>  ['name'],
        'edit'  =>  ['name'],
    ];
}
